package com.dhsc.local.dao.impl.xtqxgl;

import com.dhsc.domain.ywzx.xtqxgl.KsmxVo;
import com.dhsc.local.dao.xtqxgl.IKsmxDao;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @ClassName: KsmxDaoImpl
 * @Description: 用户考试明细
 * @date: 2023/11/3 16:33
 * @author: gx
 */
@Repository("ksmxdao")
public class KsmxDaoImpl implements IKsmxDao {

    @Autowired
    private SqlSessionTemplate localSqlSessionTemplate;

    @Override
    public List<KsmxVo> queryKsmx(KsmxVo ksmxVo) {
        return localSqlSessionTemplate.selectList("KsmxMapper.queryKsmx",ksmxVo);
    }

    @Override
    public List<KsmxVo> queryRyxm(KsmxVo ksmxVo) {
        return localSqlSessionTemplate.selectList("KsmxMapper.queryRyxm",ksmxVo);
    }

    @Override
    public int insertKsmx(KsmxVo ksmxVo) {
        return localSqlSessionTemplate.insert("KsmxMapper.insertKsmx",ksmxVo);
    }

    @Override
    public int deleteKsmx(KsmxVo ksmxVo) {
        return localSqlSessionTemplate.delete("KsmxMapper.deleteKsmx",ksmxVo);
    }
}
